// 服务端通用入口
// 核心作用：创建vue实例
import Vue from "vue";
import App from "./App.vue"
import createRouter from "./router";

// 
export default function createApp(){
    const router = createRouter()
    const app = new Vue({
        router,
        render: h => h(App) // 将app实例渲染生成
    })
    return { app , router }
}
